package com.media.service.listener.handler;

import com.media.pojo.ResourceModel;
import com.media.service.listener.HandlerResourceListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 图片处理
 */
@Service("imageHandlerService")
public class ImageHandlerService implements HandlerResourceListener {

    /**
     * 处理图片 (过算法模型)
     *
     * @param resourceModel 资源
     */
    @Override
    @Async("handlerExecutor")
    public void handler(ResourceModel resourceModel) {

//        .....
    }
}
